package com.jn.exam.paperConsumer.service;

import com.jn.exam.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 江南大学1033190417
 * @date 2022/3/25 13:52
 */
@Component
@FeignClient(value = "service-question")
public interface QuestionService {

    @GetMapping("/question/paper/getPaperQuestionById/{paperQuestionId}")
    @ResponseBody
    public R getPaperQuestionById(@PathVariable("paperQuestionId") String paperQuestionId);

}
